package com.iespring.mapper.admin;

import com.iespring.bean.admin.category.bo.CategoryBo;
import com.iespring.bean.admin.category.bo.CategoryBoResp;
import com.iespring.bean.admin.category.po.CategoryPo;
import com.iespring.bean.admin.category.vo.CategoryL1Vo;
import com.iespring.bean.admin.category.vo.CategoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author weigwen
 * @Description:
 * @Date 2022/12/28 20:55
 */

public interface CategoryBackMapper {

    List<CategoryVo> selectCategoryByPid(int i);

    List<CategoryL1Vo> selectByLevel(String level);

    int insertCategory(CategoryPo categoryPo);

    CategoryBoResp selectCategoryById(@Param("id") Integer id);

    int updateCategory(CategoryBo categoryBo);

    int updateCategoryDelStatus(CategoryBo categoryBo);

}
